package no.sogl.sportsadmin;

import java.util.ArrayList;
import java.util.List;

public class Team {
    private String group;
    private int startNo;
    private List<Member> members = new ArrayList<Member>();
    private int groupNo;
    public int getGroupNo(){
        return groupNo;
    }
    
    public Team setGroupNo(int groupNo){
        this.groupNo = groupNo;
        return this;
    }
    public String getGroup() {
        return group;
    }

    public Team setGroup(String group) {
        this.group = group;
        return this;
    }

    public int getStartNo() {
        return startNo;
    }

    public Team setStartNo(int startNo) {
        this.startNo = startNo;
        return this;
    }

    public List<Member> getMembers() {
        return members;
    }

    public Team addMember(Member member) {
        this.members.add(member);
        return this;
    }

    @Override
    public String toString() {
        return "Team [group=" + group + ", startNo=" + startNo + ", members=" + members + "]";
    }

}
